package com.hbt.springbootquick.dao;

import com.hbt.springbootquick.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface UserDao {
    @Select("select *from users where username = #{username}")
    public List<User> getUserByUsername(String username);
//    @Select("select *from users")
    public List<User> getAllUsers();
}
